import mitt from 'mitt';

import { createApp } from 'vue'
import { createPinia } from 'pinia';
import { message, Modal } from 'ant-design-vue';

import App from './App.vue'
import router from './libs/router.js';

import './assets/less/style.less'

const emitter = mitt();
const app = createApp(App);

app.config.globalProperties.$modal = Modal;
app.config.globalProperties.$message = message;
app.config.globalProperties.$eventBus = emitter;

app.provide('$modal', Modal);
app.provide('$message', message);
app.provide('$eventBus', emitter);

app.use(createPinia()).use(router).mount('#app')
